﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KeepAnimals.BLL
{
    public static class AnimalFactory
    {

        public static Animal CreateAnimal(int idType)
        {
            if (idType == Animal.ANIMAL_CAT)
            {
                return new Cat();
            }
            else if (idType == Animal.ANIMAL_DOG)
            {
                return new Dog();
            }
            else
            {
                return null;
            }
        }

    }
}
